package biz.obake.team.touchprotector.notice;

import androidx.preference.l;
import biz.obake.team.android.a;
import biz.obake.team.touchprotector.g.c;
import java.util.Map;

public class Notice {
    public static final String Updated = "Notice.Updated";
    Map<String, String> mAttributes;
    boolean mEnabled;
    String mGuid;

    public static void initRamPrefs(Map<String, String> map) {
        map.put(Updated, "true");
    }

    public boolean isAlerted() {
        return this.mEnabled;
    }

    public boolean isVisible() {
        return this.mEnabled;
    }

    /* access modifiers changed from: package-private */
    public void onBindViewHolder(l lVar, NoticePreference noticePreference) {
    }

    /* access modifiers changed from: package-private */
    public void onPrefChanged(String str) {
    }

    /* access modifiers changed from: package-private */
    public void onRamPrefChanged(String str) {
    }

    /* access modifiers changed from: package-private */
    public void setAttributes(Map<String, String> map) {
        boolean z;
        this.mAttributes = map;
        this.mGuid = map.get("android:key");
        this.mEnabled = true;
        String str = map.get("android:enabled");
        if (str != null) {
            if ("false".equals(str)) {
                z = false;
            } else if (str.startsWith("@")) {
                z = a.a().getResources().getBoolean(Integer.parseInt(str.substring(1)));
            } else {
                return;
            }
            this.mEnabled = z;
        }
    }

    /* access modifiers changed from: package-private */
    public void update() {
        c.f(Updated, true);
    }
}
